package com.itheima.service.mongo;

import com.itheima.domain.mongo.Video;
import com.itheima.domain.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoService {
    //根据用户的id 查询 推荐的小视频
    PageBeanVo findVideoByUserId(Integer pageNumber, Integer pageSize, Long loginUserId);

    //保存视频
    ObjectId saveVideo(Video video);

    //分页查询视频列表
    PageBeanVo findVideoByUid(Integer pageNumber, Integer pageSize, Long uid);
    //根据videoId查询对象
    Video findVideoById(String videoId);
}
